function data = ReadHist(filename, img_num);
fid = fopen(filename, 'rb');
data_size = [512,img_num];
data = zeros(data_size,'uint32');

if(fid>0)
    [data, count] = fread(fid,data_size,'uint32');
end
if(count == data_size(1)*data_size(2))
    display('sucessfully');
else
    display('failed');
end
status = fclose(fid);

figure;

end